package com.chinanet.controller;

import com.chinanet.mail.EmailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Create by Lourd on 2019/1/4
 */
@RestController
@RequestMapping("mail")
public class MailController {


    @Autowired
    private EmailService emailService;

    @GetMapping("test")
    public void test(){
        emailService.sendSimpleMessage("z1309014381@gmail.com","test","test");
    }
}
